public enum SPE
{
    INITDELAYMS             = 2000,
    TOUCHRATE               = 10,

    BAUD110                 = 0,
    BAUD300                 = 1,
    BAUD600                 = 2,
    BAUD1200                = 3,
    BAUD2400                = 4,
    BAUD4800                = 5,
    BAUD9600                = 6,
    BAUD14400               = 7,
    BAUD19200               = 8,
    BAUD31250               = 9,
    BAUD38400               = 10,
    BAUD56000               = 11,
    BAUD57600               = 12,
    BAUD115200              = 13,
    BAUD128000              = 14,
    BAUD256000              = 15,
    BAUD300000              = 16,
    BAUD375000              = 17,
    BAUD500000              = 18,
    BAUD600000              = 19,

    LANDSCAPE               = 0,
    LANDSCAPEREVERSE        = 1,
    PORTRAIT                = 2,
    PORTRAITREVERSE         = 3,

    SOLID                   = 0,
    OUTLINE                 = 1,

#if PICASO

    //ENUM
    OBJECTCOLOR             = 18,
    SCREENRESOLUTION        = 32,
    PAGEDISPLAY             = 33,
    PAGEREAD                = 34,
    PAGEWRITE               = 35,

    TOUCHSETINIT            = 0,
    TOUCHSETDISABLE         = 1,
    TOUCHSETRESETREGION     = 2,

    TOUCHGETSTATUS          = 0,
    TOUCHGETX               = 1,
    TOUCHGETY               = 2,

    TOUCHNOTOUCH            = 0,
    TOUCHPRESS              = 1,
    TOUCHRELEASE            = 2,
    TOUCHMOVING             = 3,

    FONT1                   = 0,
    FONT2                   = 1,
    FONT3                   = 2,

    IMAGECONTROLDATONLY     = 0,
    IMAGECONTROLALL         = 1,

    SUCCESSFUL              = 1,
    FAILED                  = 0,

    //TEXT
    MOVECURSOR_1                    = 0xFF,
    MOVECURSOR_2                    = 0xE9,
    //PUTCHARACTER
    PUTSTRING_1                     = 0x00,
    PUTSTRING_2                     = 0x18,
    CHARACTERWIDTH_1                = 0x00,
    CHARACTERWIDTH_2                = 0x1E,
    CHARACTERHEIGHT_1               = 0x00,
    CHARACTERHEIGHT_2               = 0x1D,
    TEXTFOREGROUNDCOLOR_1           = 0xFF,
    TEXTFOREGROUNDCOLOR_2           = 0xE7,
    TEXTBACKGROUNDCOLOR_1           = 0xFF,
    TEXTBACKGROUNDCOLOR_2           = 0xE6,
    SETFONT_1                       = 0xFF,
    SETFONT_2                       = 0xE5,
    TEXTWIDTH_1                     = 0xFF,
    TEXTWIDTH_2                     = 0xE4,
    TEXTHEIGHT_1                    = 0xFF,
    TEXTHEIGHT_2                    = 0xE3,
    //TEXTXGAP
    //TEXTYGAP
    //TEXTBOLD
    //TEXTINVERSE
    //TEXTITALIC
    TEXTOPACITY_1                   = 0xFF,
    TEXTOPACITY_2                   = 0xDF,
    //TEXTUNDERLINE
    //TEXTATTRIBUTES

    //GFX
    CLEAR_1                         = 0xFF,
    CLEAR_2                         = 0xCD,
    CHANGECOLOR_1                   = 0xFF,
    CHANGECOLOR_2                   = 0xB4,
    DRAWCIRCLE_1                    = 0xFF,
    DRAWCIRCLE_2                    = 0xC3,
    DRAWFILLEDCIRCLE_1              = 0xFF,
    DRAWFILLEDCIRCLE_2              = 0xC2,
    DRAWLINE_1                      = 0xFF,
    DRAWLINE_2                      = 0xC8,
    DRAWRECTANGLE_1                 = 0xFF,
    DRAWRECTANGLE_2                 = 0xC5,
    DRAWFILLEDRECTANGLE_1           = 0xFF,
    DRAWFILLEDRECTANGLE_2           = 0xC4,
    //DRAWPOLYLINE
    //DRAWPOLYGON
    DRAWFILLEDPOLYGON_1             = 0x00,
    DRAWFILLEDPOLYGON_2             = 0x14,
    //DRAWTRIANGLE
    DRAWFILLEDTRIANGLE_1            = 0xFF,
    DRAWFILLEDTRIANGLE_2            = 0xA9,
    //CALCULATEORBIT
    //PUTPIXEL
    //READPIXEL
    MOVEORIGIN_1                    = 0xFF,
    MOVEORIGIN_2                    = 0xCC,
    //DRAWLINEANDMOVEORIGIN
    //CLIPPING
    //SETCLIPWINDOW
    //EXTENDCLIPREGION
    //DRAWELLIPSE
    //DRAWFILLEDELLIPSE
    DRAWBUTTON_1                    = 0x00,
    DRAWBUTTON_2                    = 0x11,
    DRAWPANEL_1                     = 0xFF,
    DRAWPANEL_2                     = 0xAF,
    //DRAWSLIDER
    SCREENCOPYPASTE_1               = 0xFF,
    SCREENCOPYPASTE_2               = 0xAD,
    //BEVELSHADOW
    //BEVELWIDTH
    BACKGROUNDCOLOR_1               = 0xFF,
    BACKGROUNDCOLOR_2               = 0xA4,
    OUTLINECOLOR_1                  = 0xFF,
    OUTLINECOLOR_2                  = 0x9D,
    CONTRAST_1                      = 0xFF,
    CONTRAST_2                      = 0x9C,
    FRAMEDELAY_1                    = 0xFF,
    FRAMEDELAY_2                    = 0x9F,
    LINEPATTERN_1                   = 0xFF,
    LINEPATTERN_2                   = 0x9B,
    SCREENMODE_1                    = 0xFF,
    SCREENMODE_2                    = 0x9E,
    TRANSPARENCY_1                  = 0xFF,
    TRANSPARENCY_2                  = 0xA0,
    TRANSPARENTCOLOR_1              = 0xFF,
    TRANSPARENTCOLOR_2              = 0xA1,
    SETGRAPHICSPARAMETERS_1         = 0xFF,
    SETGRAPHICSPARAMETERS_2         = 0xCE,
    //GETGRAPHICSPARAMETERS

    //MEDIA

    MEDIAINIT_1                     = 0xFF,
    MEDIAINIT_2                     = 0x89,
    SETBYTEADDRESS_1                = 0xFF,
    SETBYTEADDRESS_2                = 0x93,
    //SETSECTORADDRESS
    //READSECTOR
    //WRITESECTOR
    //READBYTE
    //READWORD
    //WRITEBYTE
    //WRITEWORD
    //FLUSHMEDIA
    DISPLAYIMAGERAW_1               = 0xFF,
    DISPLAYIMAGERAW_2               = 0x8B,
    DISPLAYVIDEORAW_1               = 0xFF,
    DISPLAYVIDEORAW_2               = 0x95,
    DISPLAYVIDEOFRAMERAW_1          = 0xFF,
    DISPLAYVIDEOFRAMERAW_2          = 0x94,

    //SERIAL
    SETBAUDRATE_1                   = 0x00,
    SETBAUDRATE_2                   = 0x26,

    //TIMER
    //SLEEP

    //FAT16
    //FILEERROR
    //FILECOUNT
    //LISTFILENAMES
    //FINDFIRSTFILE
    //FINDFIRSTFILEANDREPORT
    //FINDNEXTFILE
    //FINDNEXTFILEANDREPORT
    //FILEEXISTS
    //FILEOPEN
    //FILECLOSE
    //FILESEEK
    //FILEINDEX
    //FILETELL
    //FILEWRITE
    //FILESIZE
    //DISPLAYIMAGE
    //SCREENCAPTURE
    //WRITECHARACTERTOFILE
    //READCHARACTERFROMFILE
    //WRITEWORDTOFILE
    //READWORDFROMFILE
    //WRITESTRINGTOFILE
    //READSTRINGFROMFILE
    //FILEERASE
    //FILEREWIND
    //FILELOADFUNCTION
    //FILECALLFUNCTION
    //FILERUN
    //FILEEXECUTE
    LOADIMAGECONTROL_1              = 0x00,
    LOADIMAGECONTROL_2              = 0x09,
    FILEMOUNT_1                     = 0xFF,
    FILEMOUNT_2                     = 0x03,
    //FILEUNMOUNT
    //PLAYWAVFILE
    //LOADSTRINGFOR4XE
    //READSTRINGFOR4XE

    //SOUND
    //SOUNDVOLUME
    //SOUNDPITCH
    //SOUNDBUFFER
    //SOUNDSTOP
    //SOUNDPAUSE
    //SOUNDCONTINUE
    //SOUNDPLAYING

    //TOUCHSCREEN
    TOUCHDETECTREGION_1             = 0xFF,
    TOUCHDETECTREGION_2             = 0x39,
    TOUCHSET_1                      = 0xFF,
    TOUCHSET_2                      = 0x38,
    TOUCHGET_1                      = 0xFF,
    TOUCHGET_2                      = 0x37,

    //IMAGECONTROL
    //IMAGESETPOSITION
    //IMAGEENABLE
    //IMAGEDISABLE
    //IMAGEDARKEN
    //IMAGELIGHTEN
    //SETIMAGEPARAMETERS
    //GETIMAGEPARAMETERS
    SHOWIMAGE_1                     = 0xFF,
    SHOWIMAGE_2                     = 0x47,
    //SETIMAGEATTRIBUTES
    //CLEARIMAGEATTRIBUTES
    //IMAGETOUCHED
    //BLITCOMTODISPLAY

    //SYSTEM
    //MEMORYRELEASE
    //MEMORYSTATUS
    //GETDISPLAYMODEL
    //GETSPEVERSION
    //GETPMMCVERSION

    //IO
    //BUSIN
    //BUSOUT
    //BUSREAD
    //BUSSET
    //BUSWRITE
    //PINHI
    //PINLO
    //PINREAD
    //PINSET
#else
    //ENUMS
    PENSIZE                     = 0,
    OBJECTCOLOR                 = 2,

    FONT1 = 0,
    MEDIAFONTS                  = 7,

    //TEXT
    MOVECURSOR_1                = 0xFF,
    MOVECURSOR_2                = 0xE4,
    //PUTCHARACTER
    PUTSTRING_1                 = 0x00,
    PUTSTRING_2                 = 0x06,
    CHARACTERWIDTH_1            = 0x00,
    CHARACTERWIDTH_2            = 0x02,
    CHARACTERHEIGHT_1           = 0x00,
    CHARACTERHEIGHT_2           = 0x01,
    TEXTFOREGROUNDCOLOR_1       = 0xFF,
    TEXTFOREGROUNDCOLOR_2       = 0x7F,
    TEXTBACKGROUNDCOLOR_1       = 0xFF,
    TEXTBACKGROUNDCOLOR_2       = 0x7E,
    SETFONT_1                   = 0xFF,
    SETFONT_2                   = 0xE5,
    TEXTWIDTH_1                 = 0xFF,
    TEXTWIDTH_2                 = 0x7C,
    TEXTHEIGHT_1                = 0xFF,
    TEXTHEIGHT_2                = 0x7B,
    //TEXTXGAP
    //TEXTYGAP
    //TEXTBOLD
    //TEXTINVERSE
    //TEXTITALIC
    TEXTOPACITY_1               = 0xFF,
    TEXTOPACITY_2               = 0x77,
    //TEXTUNDERLINE
    //TEXTATTRIBUTES
    //SETTEXTPARAMETERS

    //GFX
    CLEAR_1                     = 0xFF,
    CLEAR_2                     = 0xD7,
    CHANGECOLOR_1               = 0xFF,
    CHANGECOLOR_2               = 0xBE,
    DRAWCIRCLE_1                = 0xFF,
    DRAWCIRCLE_2                = 0xCD,
    DRAWFILLEDCIRCLE_1          = 0xFF,
    DRAWFILLEDCIRCLE_2          = 0xCC,
    DRAWLINE_1                  = 0xFF,
    DRAWLINE_2                  = 0xD2,
    DRAWRECTANGLE_1             = 0xFF,
    DRAWRECTANGLE_2             = 0xCF,
    DRAWFILLEDRECTANGLE_1       = 0xFF,
    DRAWFILLEDRECTANGLE_2       = 0xCE,
    //DRAWPOLYLINE
    DRAWPOLYGON_1               = 0x00,
    DRAWPOLYGON_2               = 0x04,
    DRAWTRIANGLE_1              = 0xFF,
    DRAWTRIANGLE_2              = 0xC9,
    //CALCULATEORBIT
    //PUTPIXEL
    //READPIXEL
    MOVEORIGIN_1                = 0xFF,
    MOVEORIGIN_2                = 0xD6,
    //DRAWLINEANDMOVEORIGIN
    //CLIPPING
    //SETCLIPWINDOW
    //EXTENDCLIPREGION
    BACKGROUNDCOLOR_1       = 0xFF,
    BACKGROUNDCOLOR_2       = 0x6E,
    OUTLINECOLOR_1          = 0xFF,
    OUTLINECOLOR_2          = 0x67,
    CONTRAST_1              = 0xFF,
    CONTRAST_2              = 0x66,
    FRAMEDELAY_1            = 0xFF,
    FRAMEDELAY_2            = 0x69,
    LINEPATTERN_1           = 0xFF,
    LINEPATTERN_2           = 0x65,
    SCREENMODE_1            = 0xFF,
    SCREENMODE_2            = 0x68,
    SETGRAPHICSPARAMETERS_1 = 0xFF,
    SETGRAPHICSPARAMETERS_2 = 0xD8,

    //MEDIA
    MEDIAINIT_1             = 0xFF,
    MEDIAINIT_2             = 0xB1,
    SETBYTEADDRESS_1        = 0xFF,
    SETBYTEADDRESS_2        = 0xB9,
    //SETSECTORADDRESS
    //READBYTE
    //READWORD
    //WRITEBYTE
    //WRITEWORD
    //FLUSHMEDIA
    DISPLAYIMAGERAW_1       = 0xFF,
    DISPLAYIMAGERAW_2       = 0xB3,
    DISPLAYVIDEORAW_1       = 0xFF,
    DISPLAYVIDEORAW_2       = 0xBB,
    DISPLAYVIDEOFRAMERAW_1  = 0xFF,
    DISPLAYVIDEOFRAMERAW_2  = 0xBA,

    //MEMORY
    //BYTEPEEK
    //BYTEPOKE
    //WORDPEEK
    //WORDPOKE

    //GPIO
    //JOYSTICK

    //SOUND
    //BEEP
    
    //SERIAL
    SETBAUDRATE_1           = 0x00,
    SETBAUDRATE_2           = 0x0B

    //IMAGECONTROL
    //BLITCOMTODISPLAY

    //SYSTEM
    //GETDISPLAYMODEL
    //GETSPEVERSION
    //GETPMMCVERSION
    //SCREENSAVERTIMEOUT
    //SCREENSAVERSPEED
    //SCREENSAVERMODE
#endif
}